import { TableProps } from 'antd';

export type TableRowSelection<T> = TableProps<T>['rowSelection'];

export type PermissionData = {
  code: string;
  icon?: string; //资源ICON. 比如按钮的图标url
  id: number;
  name: string;
  orderIndex?: number; //排序字段
  parentId?: number;
  type: string; //资源类型： menu-菜单，page-页面，button-按钮
  url: string; //url路径
};

export type PermissionSettingType = {
  data?: Array<PermissionData>;
  value?: PermissionData[];
  onChange?: (keys: Array<number>) => void;
};
